package com.example.demo.annotation;

import com.example.demo.Enum.DynamicDataSourceEnum;

import java.lang.annotation.*;

/**
 * @Author: ElonChung
 * @Date: 2020/5/11 17:57
 * @Description: DataSourceSelector
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Documented
public @interface DataSourceSelector {

    DynamicDataSourceEnum value() default DynamicDataSourceEnum.MASTER;
    boolean clear() default true;
}